﻿
package extremefx.ui {

	/**
	 * @author Marcelo Volmaro
	 */
	public class UIParameters {
		internal var _parent:UIComponent;
		
		internal var _id:String;
		
		public function id(pId:String):UIParameters {
			return _set("id", pId);
		}
		
		internal var _className:String;
		public function className(pClassName:String):UIParameters {
			return _set("className", pClassName);
		}
		
		internal var _toolTip:String;
		public function toolTip(pToolTip:String):UIParameters {
			return _set("toolTip", pToolTip);
		}
		
		internal var _icon:Icon;
		
		public function icon(pIcon:Icon):UIParameters {
			return _set("icon", pIcon);
		}
		
		protected function _set(pVar:String, pVal:*):UIParameters {
			this["_"+pVar] = pVal;
			return this;
		}
	}
}
